import java.io.File;

public class demo3 {



    public static void main(String[] args) {
        File file = new File("D:\\Java代码\\java-code-\\text.txt");
        boolean ok = file.delete();
        System.out.println(ok);
    }
}
